package com.lht.learn.springboot.controller;

import com.lht.learn.springboot.entity.User;
import com.lht.learn.springboot.service.TestCacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-12-24
 */
@RestController
public class TestController {

    @Autowired
    private TestCacheService testCacheService;



    @GetMapping(value = "/test")
    public User test() {
        return testCacheService.getUser(1);
    }
}
